package com.fs.fragment;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.studentmanagersystem.MainActivity;
import com.example.studentmanagersystem.R;

public class GuideFragment4 extends Fragment {

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		super.onCreateView(inflater, container, savedInstanceState);

		View view = inflater
				.inflate(R.layout.guide_fragment4, container, false);
		return view;
	}
	
	
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		
		TextView textView=(TextView) getView().findViewById(R.id.guide_textView);
		
		textView.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				 
				Intent intent=new Intent();
				intent.setClass(getActivity(), MainActivity.class);
				startActivity(intent);
				
				getActivity().finish();
			}
		});
	}

}
